package com.suixingpay.seckill.service.impl;

import com.suixingpay.seckill.mapper.ActivityMapper;
import com.suixingpay.seckill.pojo.Activity;
import com.suixingpay.seckill.pojo.Result;
import com.suixingpay.seckill.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ActivityServiceImpl implements ActivityService {

    @Autowired
    ActivityMapper activityMapper;
    Result result=new Result();
    @Override
    public Result insertAct(Activity activity) {
        int changeLine= activityMapper.insertAct(activity);
        if (changeLine==1){
            result.set(200,"增加活动成功",null);
            return result;
        }
        result.set(400,"增加活动失败",null);
        return result;
    }
}
